/**
 * @轮子的作者: 轮子哥
 **/
import {
  request
} from '../https/request.js'

//查询游戏
export function getGame(params) {
  return request('/kyy/game/page', 'GET', params)
}
//增加点击
export function addClick(params) {
  return request('/kyy/game/addClick', 'POST', params)
}
//增加打开
export function addOpen(params) {
  return request('/kyy/game/addOpen', 'POST', params)
}

//获取配置
export function getConfig(params) {
  return request('/kyy/config/page', 'GET', params)
}

export function getForum(params) {
  return request('/kyy/forum/page', 'GET', params)
}

export function getForumById(params) {
  return request('/kyy/forum?id='+params, 'GET')
}

export function getForumReplay(params) {
  return request('/kyy/replay/page', 'GET',params)
}


export function getOpenID(params) {
  return request('/kyy/forum/getOpenID?code='+params, 'GET')
}

export function checkText(params1,params2) {
  return request('/kyy/forum/checkText?text='+params1+'&openid='+params2, 'GET')
}

export function pushForumReplay(params) {
  return request('/kyy/replay/push', 'POST',params)
}

export function pushForum(params) {
  return request('/kyy/forum/push', 'POST',params)
}

export function getFixPage(params) {
  return request('/kyy/fix/page?page=1&limit=10', 'GET',params)
}